package com.yunhai.model.entity.ums;

import com.baomidou.mybatisplus.annotation.*;
import com.yunhai.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

@ApiModel(value = "UmsUserRole", description = "用户角色关联实体")
@TableName("ums_user_role")
@Data
@Accessors(chain = true)
public class UmsUserRole extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    // 联合主键字段（MyBatis-Plus 需特殊处理）
    @ApiModelProperty(value = "用户ID", required = true, example = "1917583197156151299")
    private Long userId;

    @ApiModelProperty(value = "角色ID", required = true, example = "10001")
    private Long roleId;

}
